package net.yambal.RTM.Event
{
	import flash.events.Event;
	
	import net.yambal.RTM.Items.RTMUser;

	public class AuthEvent extends Event
	{
		
		public static const FROB:String = "frob";
		public static const TOKEN:String = "token";
		public static const CHECK_TOKEN:String = "check_token";
		
		public var frob:String;
		public var authenticate_url:String;
		public var token:String;
		public var user:RTMUser;
		public var perms:String;
		
		public function AuthEvent(type:String, frob:String = null, authenticate_url:String = null, token:String = null, user:RTMUser = null, perms:String = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.frob = frob;
			this.authenticate_url = authenticate_url;
			this.token = token;
			this.user = user;
			this.perms = perms;
		}
		
	}
}